package com.hydra.auth.config;

import org.springframework.security.config.annotation.ObjectPostProcessor;
import org.springframework.security.web.access.intercept.FilterSecurityInterceptor;

/**自定义权限匹配规则*/
public class SecurityObjectPostProcessor implements ObjectPostProcessor<FilterSecurityInterceptor> {

    /**自定义权限匹配规则*/
//    @Resource
//    private SecurityMetadataSource securityMetadataSource;

    @Override
    public <O extends FilterSecurityInterceptor> O postProcess(O o) {
//            o.setAccessDecisionManager(new SecurityUrlDecisionManager());
//            o.setSecurityMetadataSource(securityMetadataSource);
        return o;
    }
}